#include<iostream>
#include<unistd.h>

using namespace std;

//union un
//{
//  char arr[13];
//  int a;
//};

#include<sys/types.h>
#include<sys/wait.h>

int main()
{
  //cout << "hello world" << endl;
  //cout << "exec [" << getpid() << "]sleep" << endl;
  //sleep(3);

  //cout << sizeof(un) << endl;
  
  //while(true)
  //{
  //  sleep(1);
  //}
  
  if(fork() == 0){
    char* argv[] = {
      "MYENV1=hahaha",
      "MYENV2=hahaha",
      "MYENV3=hahaha",
      "MYENV4=hahaha",
      "MYENV5=hahaha"
    };

    execle("./Test", "./Test", nullptr, argv);
  }
  waitpid(-1, nullptr, 0);
  cout << "father do things" << endl;


  return 20;
}
